package com.wkr.controller;

import com.wkr.service.IService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class CtrlFunction {

    @Resource
    IService myService;

    @RequestMapping("/hi")
    public void doit() {
        System.out.println(myService.first());
    }
}
